<link href="/stylesheets/tabheader.css" rel="stylesheet" type="text/css" />
<table width="100%" class="noborder_padding">
  <tr>
    <td width="200px" valign="top">
      <%=render :partial=>"sidemenu"%>
    </td>
    <td valign="top" style="padding-left: 10px;">
      <%=render :partial=>"tabheader"%>
      <h3><font color="#804040">Model & Test</font><%if @word%><font color="red"><i> &nbsp;&nbsp;&nbsp; "<%=@word%>"</i></font><%end%></h3>
      <center><i>Latest Update : </i><font color="red"><%=@project_setting.updated_at%></font></center>
      <form action="/project/model_page_save" method="post">
      Model<hr/>
      <table class="noborder" width="350px">
        <tr>
          <td width="50px"></td>
          <td><input type="checkbox" name="mm_flag" <%if @project_setting.mm_flag=='Y'%>checked<%end%>/> Market Model</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="checkbox" name="sw_flag" <%if @project_setting.sw_flag=='Y'%>checked<%end%>/> Scholes-Williams &nbsp; ( &#177;<input type="text" style="width:20px;" name="leadlag_size" value="<%=@project_setting.leadlag_size%>"/> )</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="checkbox" name="bn_flag" <%if @project_setting.bn_flag=='Y'%>checked<%end%>/> Beveridge-Nelson Decomposition</td>
        </tr>
        <tr>
          <td></td>
          <td>
            <input type="checkbox" name="hm_flag" <%if @project_setting.hm_flag=='Y'%>checked<%end%>/> Hamada
            &nbsp; ( Tax Rate: <input type="text" name="tax_rate" style="width:40px;" value="<%=@project_setting.tax_rate%>"/> )
          </td>
        </tr>
      </table>
      Test<hr/>
      <table class="noborder" width="600px">
        <tr>
          <td width="50px"></td>
          <td width="250px"><input type="checkbox" name="caar_diagram" <%if @project_setting.caar_diagram=='Y'%>checked<%end%>/> CAAR Diagram</td>
          <td><input type="checkbox" name="aar_diagram" <%if @project_setting.aar_diagram=='Y'%>checked<%end%>/> AAR Diagram</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="checkbox" name="caar_t" <%if @project_setting.caar_t=='Y'%>checked<%end%>/> CAAR t-test</td>
          <td><input type="checkbox" name="aar_t" <%if @project_setting.aar_t=='Y'%>checked<%end%>/> AAR t-test</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="checkbox" name="sign_test" <%if @project_setting.sign_test=='Y'%>checked<%end%>/> Sign Test</td>
          <td><input type="checkbox" name="rank_test" <%if @project_setting.rank_test=='Y'%>checked<%end%>/> Rank Test</td>
        </tr>
        <tr>
          <td></td>
          <td><input type="checkbox" name="sd_ar_test" <%if @project_setting.sd_ar_test=='Y'%>checked<%end%>/> Standardized abnormal return</td>
          <td><input type="checkbox" name="sd_cr_test" <%if @project_setting.sd_cr_test=='Y'%>checked<%end%>/> Standardized cross-sectional return</td>
        </tr>
      </table>
      <br/>
      <center>
        <input type="submit" value="Save"/>
      </center>
      </form>
    </td>
  </tr>
</table>